<template>
  <div>
    <!-- :src="'@/pdf/web/viewer.html?file=' + encodeURIComponent(this.file_url)" -->
    <iframe id="pdfLeft" :src="'./pdf/web/viewer.html?file=' + encodeURIComponent(file_url)" frameborder="0"
      style="width: 100vw;height: 100vh;">
    </iframe>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { useRoute } from 'vue-router'
const route=useRoute()
const base_url = ref<any>("./pdf/web/viewer.html")
const file_url = ref<any>("")
const url = ref<any>('')
const getData = () => {
  file_url.value=route.fullPath.slice(18)
  url.value = `${base_url.value}?file=${encodeURIComponent(file_url.value)}`;
}
getData()
</script>
